package br.usp.icmc.biomac.client.view;

import java.util.ArrayList;
import java.util.List;

import br.usp.icmc.biomac.shared.ImageDicom;
import br.usp.icmc.biomac.shared.ROI;

import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.IsWidget;

/**
 * View interface. Extends IsWidget so a view impl can easily provide its
 * container widget.
 * 
 * @author dilvan
 */

public interface ImageView extends IsWidget {

	interface Presenter {
		
		void goTo(Place place);
		
		void showImageAnnotation(List<ROI> rois);
		
		ArrayList<ImageDicom> getImages();
		
		void getImages(String series);
		
		int getIndexImage();
		
		void setIndexImage(int index);
		
		void setImages(ArrayList<ImageDicom> images);
		
		void addROI(int indexImage, ROI roi);
		
		void rmvROI(int indexImage, int indexROI);

	}
	
	void setPresenter(Presenter listener);

	void setData(List<ImageDicom> Images);
	
	void drawImage();
	
}